/**
 * 个人信息
 */

import type { ProfileDetail, profileParams } from '@/types/member';
import { http } from '@/utils/https';

export const getMemberProfileAPI = () => {
  return http<ProfileDetail>({
    method: 'GET',
    url: '/member/profile',
  });
};

/**
 * 修改个人信息
 */

export const putMemberProfileAPI = (data: profileParams) => {
  return http<ProfileDetail>({
    method: 'PUT',
    url: '/member/profile',
    data,
  });
};
